use crate::biz::service::hello::root;
use crate::biz::service::user::create_user;
use volo_http::server::route::{get, post};
use volo_http::Router;

pub fn merge_routers() -> Router {
    Router::new()
        .merge(new_router().route("/", get(root)))
        .merge(new_router().route("/users", post(create_user)))
}

pub(crate) fn new_router() -> Router {
    Router::new()
}
